package com.ruoyi.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 库存明细对象 sys_stock_details
 * 
 * @author ruoyi
 * @date 2025-04-25
 */
@ApiModel(description = "库存明细对象")
public class SysStockDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 调整类型 */
    @Excel(name = "调整类型")
    @ApiModelProperty(value = "调整类型",required = true)
    private String adjustType;

    /** 调整数量 */
    @Excel(name = "调整数量")
    @ApiModelProperty(value = "调整数量",required = true)
    private String adjustNum;

    /** 剩余数量 */
    @Excel(name = "剩余数量")
    @ApiModelProperty(value = "剩余数量",required = true)
    private String remainingNum;

    /** 是否删除 */
    @Excel(name = "是否删除")
    @ApiModelProperty(value = "是否删除")
    private String status;

    @ApiModelProperty(value = "创建开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    @ApiModelProperty(value = "创建结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    /** 商品id */
    @Excel(name = "商品id")
    @ApiModelProperty(value = "商品id")
    private String goodsId;

    /** 是否删除 */
    @Excel(name = "门店id")
    @ApiModelProperty(value = "门店id")
    private String storeId;

    private String createByName;

    public String getCreateByName() {
        return createByName;
    }

    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setAdjustType(String adjustType) 
    {
        this.adjustType = adjustType;
    }

    public String getAdjustType() 
    {
        return adjustType;
    }

    public void setAdjustNum(String adjustNum) 
    {
        this.adjustNum = adjustNum;
    }

    public String getAdjustNum() 
    {
        return adjustNum;
    }

    public void setRemainingNum(String remainingNum) 
    {
        this.remainingNum = remainingNum;
    }

    public String getRemainingNum() 
    {
        return remainingNum;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("adjustType", getAdjustType())
            .append("adjustNum", getAdjustNum())
            .append("remainingNum", getRemainingNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .toString();
    }
}
